<admintpl file="header" />
</head>
<style>
input .danxuan{ width:14px; height:14px;float:left;}
span .text{ margin-right: 40px;}
.radio {margin-top: 5px;margin-left: 5px;margin-right: 20px; float: left;}
</style>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('Groups/index')}">群组管理</a></li>
            <li class="active"><a href="{:U('Groups/add')}">添加群组</a></li>
        </ul>
        <form action="{:U('Groups/add_device',array('source'=>'add'))}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data">
            <div class="row-fluid">
                <div class="span12">
                    <table class="table table-bordered">
                        <tr>
                            <th>名称</th>
                            <td>
                                <input type="text" name="area_name" required value="" placeholder="请输入区域名称" autocomplete="off"/>
                            </td>
                        </tr>
                        <tr>
                            <th>介绍</th>
                            <td>
                                <input type="text" name=" area_description" required placeholder="请填写区域备注" autocomplete="off"/>
                            </td>
                        </tr>
                        <tr>
                            <th>区域类型</th>
                            <td>
								<label class="radio">
									<input type="radio" name="area_type" value="1"checked>
									<span>自选设备</span>
								</label>
								<label class="radio">
									<input type="radio" name="area_type" value="2">
									<span>自选坐标</span>
								</label>
								<label class="radio">
									<input type="radio" name="area_type" value="3">
									<span>自选城市</span>
								</label>
								<label class="radio">
									<input type="radio" name="area_type" value="4">
									<span>批量导入</span>
								</label>
                            </td>
                        </tr>
                        <tr>
                            <th>是否锁定（只对自定义和批量导入有效）</th>
                            <td>
								<label class="radio">
									<input type="radio" name="area_locking" value="0" checked>
									<span>不锁定</span>
								</label>
								<label class="radio">
									<input type="radio" name="area_locking" value="1">
									<span>锁定</span>
								</label>
								<input type="hidden" name="status" value="0" />
                            </td>
                       </tr>
                    </table>
                </div>
            </div>
            <div class="form-actions">
                <button class="btn btn-primary js-ajax-submit" type="submit">创建区域（关联设备）</button>
                <a class="btn" href="{:U('Groups/index')}">返回</a>
            </div>
        </form>
    </div>
    <script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
</body>
</html>
